import { Utility } from "@/libs/utility"
export const MonitoringTimePointOfPosturalHypotensionFormConfig = (item) => {
  return [
    {
      fieldName: "id",
      fieldCNName: "",
      filedValue: "",
      /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
      type: "",
    },
    // {
    //   fieldName: "periodNo",
    //   fieldCNName: "周期号",
    //   filedValue: "",
    //   /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    //   type: "select",
    //   rules: {
    //     required: true,
    //   },
    //   span: 2,
    //   itemList: [
    //     {
    //       // 类似于name
    //       label: "周期号1",
    //       // 类似于id
    //       value: 1,
    //     },
    //     {
    //       // 类似于name
    //       label: "周期号2",
    //       // 类似于id
    //       value: 2,
    //     },
    //   ],
    // },
    {
      /** 字段名，如：name */
      fieldName: "drugNo",
      /** 字段对应的中文解释，如：姓名 */
      fieldCNName: "基于给药序号",
      /** 字段的值，如：张三 */
      filedValue: "",
      /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
      type: "select",
      rules: {
        required: true, // 只有为true的时候才写，为false这个字段不要
      },
      span: 2,
      itemList: item
    },

    {
      fieldName: "baseDrugTime",
      fieldCNName: "基于给药时间",
      filedValue: "",
      /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
      type: "select",
      rules: {
        required: true, // 只有为true的时候才写，为false这个字段不要
      },
      span: 2,
      itemList: Utility.getDictList("base_time"),
    },
    {
      fieldName: "timePoint",
      fieldCNName: "时间点",
      filedValue: "",
      /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
      type: "inputText",
      span: 2,
    },
    // {
    //   fieldName: "oppositeDay",
    //   fieldCNName: "相对天数",
    //   filedValue: "",
    //   /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    //   type: "inputNumber",
    //   span: 2,
    // },
    // {
    //   fieldName: "oppositeTime",
    //   fieldCNName: "相对时间",
    //   filedValue: "",
    //   /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    //   type: "time",
    //   span: 2,
    // },
    {
      fieldName: "ttwSizeof",
      fieldCNName: "时间窗运算符",
      filedValue: "",
      /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
      type: "select",
      span: 2,
      itemList: Utility.getDictList("ttw_sizeof"),
      rules: {
        required: true, // 只有为true的时候才写，为false这个字段不要
      },
    },
    {
      fieldName: "ttwValue",
      fieldCNName: "时间窗值",
      filedValue: "",
      /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
      type: "inputNumber",
      span: 2,
    },
    {
      fieldName: "ttwUnit",
      fieldCNName: "时间窗单位",
      filedValue: "",
      span: 2,
      /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
      type: "select",
      itemList: Utility.getDictList("ttw_unit"),
      rules: {
        required: true, // 只有为true的时候才写，为false这个字段不要
      },
    },
    // {
    //   fieldName: "correctPlan",
    //   fieldCNName: "是否矫正计划时间",
    //   filedValue: "",
    //   /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    //   type: "switch",
    //   span: 2,
    // },
    {
      fieldName: "remarks",
      fieldCNName: "监测点描述",
      filedValue: "",
      /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
      type: "textarea",
    },
  ];

} 